package com.kzw.oa.model.info;

import java.io.Serializable;
import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * 消息发送 一次消息发送包含多个消息接收 一个消息接收属于一个消息发送
 * */
public class ShortMessage implements Serializable {

	private Long messageId;
	// 发送内容
	private String content;
	// 发送者ID
	private Long senderId;
	// 发送者姓名
	private String sender;
	// 消息类型
	private Short msgType;
	// 发送时间
	private Date sendTime;
	// 包含多个消息接收者
	private Set<InMessage> messages = new HashSet<InMessage>();
	// 是否删除(不可见)
	private Short delFlag = 0;
	// 接收者IDs
	private String userIds;
	// 接收者names
	private String userFullnames;

	public String getUserIds() {
		return userIds;
	}

	public void setUserIds(String userIds) {
		this.userIds = userIds;
	}

	public String getUserFullnames() {
		return userFullnames;
	}

	public void setUserFullnames(String userFullnames) {
		this.userFullnames = userFullnames;
	}

	public Short getDelFlag() {
		return delFlag;
	}

	public void setDelFlag(Short delFlag) {
		this.delFlag = delFlag;
	}

	/**
	 * 1=个人信息 2=日程安排 3=计划任务 4=代办任务提醒 5=系统提醒
	 */
	public final static Short MSG_TYPE_PERSONAL = 1;
	public final static Short MSG_TYPE_CALENDAR = 2;
	public final static Short MSG_TYPE_PLAN = 3;
	public final static Short MSG_TYPE_TASK = 4;
	public final static Short MSG_TYPE_SYS = 5;

	public Set<InMessage> getMessages() {
		return messages;
	}

	public void setMessages(Set<InMessage> messages) {
		this.messages = messages;
	}

	public Long getMessageId() {
		return messageId;
	}

	public void setMessageId(Long messageId) {
		this.messageId = messageId;
	}

	public String getContent() {
		return content;
	}

	public void setContent(String content) {
		this.content = content;
	}

	public Long getSenderId() {
		return senderId;
	}

	public void setSenderId(Long senderId) {
		this.senderId = senderId;
	}

	public String getSender() {
		return sender;
	}

	public void setSender(String sender) {
		this.sender = sender;
	}

	public Short getMsgType() {
		return msgType;
	}

	public void setMsgType(Short msgType) {
		this.msgType = msgType;
	}

	public Date getSendTime() {
		return sendTime;
	}

	public void setSendTime(Date sendTime) {
		this.sendTime = sendTime;
	}

}
